<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>第一次测试</title>
</head>
<body>
    <div id="first">
        <input placeholder="请输入数量" v-model="num">
        {{name}}非常帅 <br>
        有{{num}}架航母 <br>
        <button v-on:click="num++">加航母数量</button>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        let first = new Vue({
            el:"#first",
            data:{
                name:"baoyuanfa",
                num:1
            }
        })
    </script>
</body>
</html>